package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: specialist
 * @Author: jeecg-boot
 * @Date:   2021-12-30
 * @Version: V1.0
 */
@Data
@TableName("specialist")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="specialist对象", description="specialist")
public class Specialist implements Serializable {
    private static final long serialVersionUID = 1L;

	/**专家名称*/
	@Excel(name = "专家名称", width = 15)
    @ApiModelProperty(value = "专家名称")
    private String specialistName;
	/**专家性别*/
	@Excel(name = "专家性别", width = 15)
    @Dict(dicCode = "sex")
    @ApiModelProperty(value = "专家性别")
    private String specialistSex;
	/**职务*/
	@Excel(name = "职务", width = 15)
    @ApiModelProperty(value = "职务")
    private String job;
	/**工作单位*/
        @Excel(name = "工作单位", width = 15)
    @ApiModelProperty(value = "工作单位")
    private String workUnit;
	/**技术专长*/
	@Excel(name = "技术专长", width = 15)
    @Dict(dicCode = "technical_expertise")
    @ApiModelProperty(value = "技术专长")
    private String technicalExpertise;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String specialistPhone;
	/**专家类型*/
	@Excel(name = "专家类型", width = 15)
    @ApiModelProperty(value = "专家类型")
    @Dict(dicCode = "specialist_type")
    private String specialistType;
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**简介*/
	@Excel(name = "简介", width = 15)
    @ApiModelProperty(value = "简介")
    private String synopsis;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
